package mybatisplus.spring.boot.admin.business.user.service.impl;

import mybatisplus.spring.boot.admin.business.user.entity.User;
import mybatisplus.spring.boot.admin.business.user.mapper.UserMapper;
import mybatisplus.spring.boot.admin.business.user.service.IUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 系统用户表 服务实现类
 * </p>
 *
 * @author AutoGenerator
 * @since 2019-06-21
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {

    @Override
    public void synchronousMethod() {
        System.out.println("synchronousMethod====="+Thread.currentThread().getId());
    }

    @Override
    @Async
    public void asynchronousMethod() {
        System.out.println("asynchronousMethod====="+Thread.currentThread().getId());
    }
}
